package com.changli01.oop;

public class PhoneTest {
    public static void main(String[] args) {
        Phone p1 = new Phone();
        p1.brand = "Huawei Mate60";
        p1.price = 10999;
        System.out.println("品牌为"+p1.brand+",价格为"+p1.price);
        p1.call();
        String msg ="老婆去吃饭吧";
        p1.SendMessage(msg);
        p1.palyGame();
//        对象赋值，赋值的是对象的地址
        Phone p2 = p1;

        p2.price = 9999;
        System.out.println(p1.price);
    }
}
